import request from '@/utils/request'

// 查询任务类型字典列表
export function listTypedist(query) {
  return request({
    url: '/task/typedist/list',
    method: 'get',
    params: query
  })
}

// 查询任务类型字典详细
export function getTypedist(id) {
  return request({
    url: '/task/typedist/' + id,
    method: 'get'
  })
}

// 新增任务类型字典
export function addTypedist(data) {
  return request({
    url: '/task/typedist',
    method: 'post',
    data: data
  })
}

// 修改任务类型字典
export function updateTypedist(data) {
  return request({
    url: '/task/typedist',
    method: 'put',
    data: data
  })
}

// 删除任务类型字典
export function delTypedist(id) {
  return request({
    url: '/task/typedist/' + id,
    method: 'delete'
  })
}

// 导出任务类型字典
export function exportTypedist(query) {
  return request({
    url: '/task/typedist/export',
    method: 'get',
    params: query
  })
}